package com.it.domain;

import java.io.Serializable;
import java.util.Date;

public class Goods_Details implements Serializable {
    private Integer id_d;                     //id_d
    private String name;                    //名称
    private String details;                 //商品类型
    private Integer Quantity;               //数量（kg）
    private Date Production_Date;           //生产日期
    private Integer Shelf_life;             //保质期（天）
    private Double Purchase_price;          //进货价格
    private Double Shipping_price;          //出货价格


    public Goods_Details() {
    }

    public Goods_Details(Integer id_d, String name, String details, Integer quantity, Date production_Date, Integer shelf_life, Double purchase_price, Double shipping_price) {
        this.id_d = id_d;
        this.name = name;
        this.details = details;
        Quantity = quantity;
        Production_Date = production_Date;
        Shelf_life = shelf_life;
        Purchase_price = purchase_price;
        Shipping_price = shipping_price;
    }

    public Integer getId_d() {
        return id_d;
    }

    public void setId_d(Integer id_d) {
        this.id_d = id_d;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDetails() {
        return details;
    }

    public void setDetails(String details) {
        this.details = details;
    }

    public Integer getQuantity() {
        return Quantity;
    }

    public void setQuantity(Integer quantity) {
        Quantity = quantity;
    }

    public Date getProduction_Date() {
        return Production_Date;
    }

    public void setProduction_Date(Date production_Date) {
        Production_Date = production_Date;
    }

    public Integer getShelf_life() {
        return Shelf_life;
    }

    public void setShelf_life(Integer shelf_life) {
        Shelf_life = shelf_life;
    }

    public Double getPurchase_price() {
        return Purchase_price;
    }

    public void setPurchase_price(Double purchase_price) {
        Purchase_price = purchase_price;
    }

    public Double getShipping_price() {
        return Shipping_price;
    }

    public void setShipping_price(Double shipping_price) {
        Shipping_price = shipping_price;
    }

    @Override
    public String toString() {
        return "Goods_Details{" +
                "id_d=" + id_d +
                ", name='" + name + '\'' +
                ", details='" + details + '\'' +
                ", Quantity=" + Quantity +
                ", Production_Date=" + Production_Date +
                ", Shelf_life=" + Shelf_life +
                ", Purchase_price=" + Purchase_price +
                ", Shipping_price=" + Shipping_price +
                '}';
    }
}
